import { SearchConfig } from '@/components/search-panel/types'

export const searchConfig: SearchConfig = {
  showLabel: false,
  labelWidth: '70px',
  formItems: [
    {
      label: '姓名',
      field: 'name',
      type: 'input',
      placeholder: '请输入姓名'
    },
    {
      label: '手机号码',
      field: 'cellphone',
      type: 'input',
      placeholder: '请输入联系电话'
    },
    {
      label: '邮箱',
      field: 'email',
      type: 'input',
      placeholder: '请输入邮箱'
    },
    {
      label: '部门',
      field: 'department',
      type: 'select',
      placeholder: '请选择部门',
      optionsGetter: 'staff/departmentOptions'
    },
    {
      label: '角色',
      field: 'role',
      type: 'select',
      placeholder: '请选择角色',
      optionsGetter: 'staff/roleOptions'
    },
    {
      label: '状态',
      field: 'status',
      type: 'select',
      placeholder: '请选择状态',
      options: [
        { label: '已启用', value: 1 },
        { label: '已禁用', value: 0 }
      ]
    }
  ]
}
